package com.qf;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 *
 * @EnableFeignClients(basePackages = "com.qf.feign")
 *      扫描feign接口， 创建代理对象， 存储到容器中
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
@SpringBootApplication
@EnableEurekaClient
@EnableFeignClients(basePackages = "com.qf.feign")
@EnableCircuitBreaker  //开启熔断器
@EnableHystrixDashboard  //开启断路器的面板
@ServletComponentScan(basePackages = "com.qf.config") //扫描servlet对象
public class QfOrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(QfOrderApplication.class, args);
    }
}
